home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Graphics / SPD / README.MAC < prev    next >
Encoding:
Text File  |  1994-10-28  |  7.3 KB  |  189 lines  |  [TEXT/ttxt]

  1. SPD Update 3.4 - October 29, 1994
  2. =============================
  3.  
  4. Macintosh SPD
  5. Document by Eduard Schwan
  6.  
  7. Introduction
  8. ------------
  9.  
  10. SPD is a suite of raytracer scene generators, which can be used as benchmark
  11. databases for timing tests.  For a full description, see the file README.
  12.  
  13. The SPD source code is being distributed as "Public Domain".  These Macintosh
  14. applications are also being distributed as public domain, no copyrights, no
  15. guarantees, no restrictions on their use or distribution.
  16.  
  17. The Macintosh port of SPD is contained in the archive MACSPD.SIT contains
  18. the SPD Mac Source code, for Think C or MPW C, and the SPD Mac Applications
  19. ready to run.
  20.  
  21. There are also IBM PC versions of these archives available.
  22.  
  23. This document will describe the Macintosh-specific information for these SPD
  24. archives.
  25.  
  26. These Mac programs were written to be very simple.  There are no frills, and
  27. not much error checking.  They are meant to quickly crank out source files for
  28. raytracers.  Specifically, the "Display to Screen" code for the Macintosh is
  29. not very robust.  It works as a simple previewer on color Macintoshes, but it
  30. does not buffer offscreen, nor does it check for Color Quickdraw unless
  31. calling the screen display routines.  Be forewarned!  :-)
  32.  
  33.  
  34. Requirements
  35. ------------
  36.  
  37. The software requires a minimum Macintosh hardware and software configuration
  38. to run:
  39. - System 6.0.4 or higher, Runs fine on 7.0 and 7.1.
  40. - 68020 or higher CPU, does not require an FPU (Mac LC's and Quadras work
  41.   fine.)
  42. - Under System 6, your Macintosh should have at least 2 MB memory.  Under
  43.   System 7, at least 4 MB is recommended.
  44. - Color Quickdraw*.  If running System 6, you must have a color Macintosh (not
  45.   an SE or Plus.)  Under System 7, Color Quickdraw is installed on all
  46.   machines.
  47.  
  48. * Color QuickDraw is not required if writing to an output file, only if
  49.   displaying the image to the screen.
  50.  
  51.  
  52. Features
  53. --------
  54.  
  55. The Mac SPD is relatively MultiFinder friendly, letting you switch out on
  56. large file generations.  SPD will continue to work in the background.
  57. However, please see the Bugs section for some cosmetic annoyances with
  58. switching out.  It is a straight Macintosh application, with an initial
  59. dialog box to gather input (i.e. command line) information.
  60.  
  61.  
  62. How to Use
  63. ----------
  64.  
  65. To run any one of the SPD applications:
  66. (1) Double-click the application you want to run.
  67. (2) Select the output raytracer format from the popup menu.
  68. (3) Type in a number for the size,
  69.     -or-
  70.     Select an input file for the READDXF/READNFF applications.
  71. (4) Click the OK button, and the scene will be generated.
  72.     - If it is to the screen, the scene will be displayed immediately, in a
  73.       window.
  74.     - If it is for a specific raytracer, it will create a textfile in the
  75.       same folder as the application, called APPNAME.out (e.g., the
  76.       application "rings" would create a file called "rings.out".)
  77. (5) Now run your favorite raytracer, and display and time the image.
  78.  
  79. NOTE:  POV-Ray Macintosh cannot open main scene files larger than 32k bytes,
  80. and many SPD files will be much bigger than this.  To get around this, create
  81. a small POV-Ray file whose sole purpose in life is to include the large .OUT file
  82. (e.g.  "rings.pov".)  If you want to edit the .OUT file, you will need to use
  83. a "real" text editor or word processor that doesn't have the 32k limitation.
  84.  
  85.  
  86. Bugs
  87. ----
  88.  
  89. MacSPD does not set the file creator to anything.  The output file is of type
  90. text, but with no creator. As an un-typed text file, you should not
  91. double-click it to open it.  Instead drag-n-drop it on your favorite word
  92. processor, or run the word processor and open it from the file menu.
  93.  
  94. If you switch out while drawing to the screen, and then switch back, the
  95. image display window is not refreshed.
  96.  
  97. Low memory conditions are not gracefully handled.  If you get an error, try
  98. increasing the application memory size from the Finder's "Get Info" window.
  99.  
  100. Color Quickdraw is not explicitly checked for on program startup.  If your run
  101. an SPD program on a non-Color QD Mac, it will run OK if you write to a file,
  102. but if you try to display to the screen, it will display an error dialog and
  103. quit.
  104.  
  105.  
  106. Notes
  107. -----
  108.  
  109. Larger size values may require that you increase the Application Memory Size.
  110. If you have limited memory and only want to create small sized files, you can
  111. get away with lowering the Application Memory Size, probably down to about 600K.
  112.  
  113. Currently, the only raytracers I know about for the Macintosh that the SPD
  114. programs support are:
  115.   POV-Ray
  116.   RTrace
  117.   RayShade
  118.   Renderman
  119. With the recent addition of DXF output, many more Mac ray tracers can import
  120. these files (Ray Dream, Infini-D, Strata, etc.)  The Macintosh versions of many
  121. of these raytracers can be found on the internet (ask Eric Haines at erich@eye.com
  122. for addresses), and POV-Ray can also be found on CompuServe (GO GRAPHDEV) and
  123. on America Online (Keyword:PGR, Company Support.)
  124.  
  125.  
  126. Source Notes
  127. ------------
  128.  
  129. MPW:
  130. To compile under MPW 3.x, just type the following:
  131.   BuildProgram MacSPD
  132. That's it, every program will be created.
  133.  
  134. Symantec:
  135. To compile under Symantec C 7.x, you will need to create a project for each
  136. app.  An empty project file for the Balls application is supplied, ready to
  137. go.  To create the other project files, just duplicate this project file &
  138. rename it for the next application, then remove the "balls.c" source file and
  139. add the new source file in its place.  Compile the project and change its
  140. output application file name from "Balls" to the new application name. For
  141. example, to create the "Gears" application, do the following:
  142. 1. Duplicate Balls.π, and rename the copy to Gears.π
  143. 2. Open Gears.π, Remove the "balls.c" file, and Add the "gears.c" file
  144. 3. Build the Application, and when prompted for an app. file, type Gears
  145. 4. Do steps 1 through 3 for each application (balls, gears, lattice, mount,
  146.    readdxf, readnff, rings, sample, shells, teapot, tetra, tree)
  147. Note that I have created an "ANSI-NoConsole" library for these to link to.
  148. You will need to do the same.  Instructions on how to do this are in the
  149. Symantec manual, sorry for the cop-out on instructions.
  150. The project info is:
  151.   Creator: SPDm
  152.   Partition: 800K
  153.   Size Flags: 58C0
  154.   Separate Strs: ON
  155.  
  156. Metrowerks:
  157. No project file is yet included, simply because I haven't had time.  I have
  158. started to add compiler directives, and it does compile, I just haven't tested
  159. it yet.
  160.  
  161.  
  162. Credits & Information
  163. ---------------------
  164.  
  165. Eric Haines wrote the original SPD software.
  166.  
  167. Alexander Enzmann added the additional Raytracer support and did the original
  168. port to the IBM PC and the Macintosh (in Think C 5.)  He also created the
  169. SAMPLE and READDXF (was showdxf) data bases.
  170.  
  171. Eduard Schwan updated the Macintosh code to work with MPW C as well as
  172. Symantec C 6 & 7, added the initial dialog box to prompt for the "command
  173. line parameters", added the READNFF database, and created the PLATFORM_XXX
  174. stuff to make the code even more portable, and broke the lib.c file into several
  175. smaller pieces so as to be more grokkable by humans and toy Symantec
  176. compilers.  Metrowerks support is coming soon.
  177.  
  178. If you have any comments, questions or bug reports for the Macintosh version
  179. of these applications, please feel free to contact me.  General questions on
  180. SPD should be directed to the original author, Eric Haines.
  181.  
  182. Enjoy!
  183.  
  184. Eduard [esp] Schwan
  185.   CompuServe: 71513,2161
  186.     internet: 71513.2161@compuserve.com
  187.  
  188. [eof]
  189.